<template>
  <div style="margin-top: 24px;">
    <t-descriptions :column="1" :layout="vertical" 
    :label-style="{ width: '516px', textAlign: 'right' }"
    :content-style="{ textAlign: 'left' }">
      <t-descriptions-item label="评估对象">{{ ['甲方','乙方'][data.assessSubject] }}</t-descriptions-item>
      <t-descriptions-item label="项目名称">{{ data?.assessName }}</t-descriptions-item>
      <t-descriptions-item label="公司主体名称">{{ data?.company }}</t-descriptions-item>
      <t-descriptions-item label="统一信用代码">{{ data?.tyxydm }}</t-descriptions-item>
      <t-descriptions-item label="评估内容"> {{ ['DCMM评估','DSMM评估','数据合规评估'][data.assessModel] }} </t-descriptions-item>
      <t-descriptions-item label="DCMM评估级别" v-if="data.assessModel === 0">{{['三级','四级'][data.assessLevel]}}</t-descriptions-item>
      <t-descriptions-item label="DSMM评估级别" v-if="data.assessModel === 1">{{['三级','四级'][data.assessLevel]}}</t-descriptions-item>
      <t-descriptions-item label="DCMM评估人" v-if="data.assessModel === 0">{{data.pgr}}</t-descriptions-item>
      <t-descriptions-item label="DSMM评估人" v-else-if="data.assessModel === 1">{{data.pgr}}</t-descriptions-item>
      <t-descriptions-item label="数据合规评估人" v-else>{{data.pgr}}</t-descriptions-item>
    </t-descriptions>
  </div>
</template>
<script setup>
const props = defineProps({
  data: {
      type: Object,
      default: () => {},
    },
})
</script>
<style lang="scss" scoped>
:deep(.t-descriptions__body.t-size-m > tbody > tr > td ){
  padding: 0px 16px 16px 0;
}
</style>
